import { RouteRecordRaw } from "vue-router";
// /* webpackChunkName: "Index" */ 这个用于打包构建拆解不同的模块，用于性能优化 "Index" 为模块名称 可在dist查看
const routeList: Array<RouteRecordRaw> = [
  {
    path: "/map/:id",
    name: "Map",
    meta: {
      title: "MAP",
    },
    component: () =>
      import(/* webpackChunkName: "Map" */ "@/views/Map/index.vue"),
  },
  {
    path: "/a2/:id",
    name: "A2",
    meta: {
      title: "A2",
    },
    component: () =>
      import(/* webpackChunkName: "A2" */ "@/views/A2/index.vue"),
  },
  {
    path: "/a3/:id",
    name: "A3",
    meta: {
      title: "A3",
    },
    component: () =>
      import(/* webpackChunkName: "A3" */ "@/views/A3/index.vue"),
  },
  {
    path: "/b1/:id",
    name: "B1",
    meta: {
      title: "B1",
    },
    component: () =>
      import(/* webpackChunkName: "B1" */ "@/views/B1/index.vue"),
  },
  {
    path: "/b2/:id/:type/:remark",
    name: "B2",
    meta: {
      title: "B2",
    },
    component: () =>
      import(/* webpackChunkName: "B2" */ "@/views/B2/index.vue"),
  },
];
const routes: Array<RouteRecordRaw> = routeList;
export default routes;
